package com.es.esapi.service;

import com.es.esapi.common.CommonResponse;
import com.es.esapi.domain.ClassA;

import java.io.IOException;
import java.util.List;

public interface EsearchService {
    CommonResponse<Object> create_index(String index_name) throws IOException;

    CommonResponse<Object> index_ini() throws IOException;


    CommonResponse<Object> exist_index(String index_name) throws IOException;

    CommonResponse<Object> delete_index(String index_name) throws IOException;


    CommonResponse<Object> add_document(String doc_title,int page_index,String doc_content,String index_name) throws IOException;

    CommonResponse<Object> is_exist_document(String doc_title,int page_index) throws IOException;

    CommonResponse<Object> delete_document(String doc_title,int page_index) throws IOException;


    CommonResponse<Object> bulk_document(String doc_title,List<ClassA> tlist) throws IOException;

    CommonResponse<Object> add_location_index(String title,String path) throws IOException;

    CommonResponse<Object> search(String search_key, String search_mode) throws IOException;

    CommonResponse<Object> get_location_index(String doc_id) throws IOException;

    CommonResponse<Object> favour(String doc_id) throws IOException;

    CommonResponse<Object> click(String doc_id) throws IOException;

}
